FROM codingsoldier/openjdk-17-jdk-slim-enhance:1.0
ADD *.jar /app/app.jar
ADD entrypoint.sh /app/
RUN chmod +x /app/entrypoint.sh \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone
ENTRYPOINT  ["/app/entrypoint.sh"]
EXPOSE {{port}}
STOPSIGNAL SIGTERM
LABEL maintainer="CodingSoldier"
